


    <!-- Main Start -->
    <div class="container">
      <div class="row com-schools-hot">
        <div class="com-schools-tag">热门院校</div>
        <div class="com-schools">
            
             <?php foreach ($dataRightList['school'] as $k=>$v):?>
                <a href="">
                  <img src="<?php echo $v['banner_url']?>">
                  <p><?php echo $v['name']?></p>
                </a>
          <?php endforeach;?>
            
        </div>
      </div>
      <div class="row" style="background:white;">
        <div class="com-schools-list-tag">按拼音首字母选择</div>
        <dl class="dl-horizontal com-schools-list">
            
            <?php foreach($School as $k=>$v):?>
            
            <dt><span><?php echo $k?></span></dt>
          <dd>
            <button class="com-schools-list-more">更多 <span class="glyphicon glyphicon-chevron-down"></span></button>
                <?php foreach ($v as $kk=>$vv):?>
            <a href="javascript:;" target="_blank"><?php echo $vv['name'];?></a>

                <?php endforeach; ?>
          </dd>
          <?php endforeach; ?>
          
          
          
          
          
<!--          <dt><span>B</span></dt>
          <dd>
            <button class="com-schools-list-more">更多 <span class="glyphicon glyphicon-chevron-down"></span></button>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
            <a href="javascript:;" target="_blank">安徽大学</a>
          </dd>-->
        </dl>
      </div>
    </div>
    


<script type="text/javascript">
    
  function school_more(i){
    var i = $(i);
    var a = i.children();
    var b = i.parent();
    if(a.hasClass("glyphicon-chevron-down")){
      i.html('收起 <span class="glyphicon glyphicon-chevron-up"></span>');
      b.css( "height", "auto" );
    }else if(a.hasClass("glyphicon-chevron-up")){
      i.html('更多 <span class="glyphicon glyphicon-chevron-down"></span>');
      b.css( "height", 30 );
    }
  }
  
  $('.com-schools-list-more').click(function(){
    school_more(this);
  });
  
  
  
</script>
